package com.sun.weekend.ui.activity;

import android.os.Bundle;
import android.os.Handler;

import com.sun.weekend.R;
import com.sun.weekend.base.BaseActivity;
import com.sun.weekend.beans.BundleBean;
import com.sun.weekend.util.Go2Util;


public class SplashActivity extends BaseActivity {

	private static final long DELAY_TIME = 1000L;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_splash);
		redirectByTime();
	}


	private void redirectByTime() {
		new Handler().postDelayed(new Runnable() {
			
			@Override
			public void run() {
				// TODO Auto-generated method stub
				BundleBean bean = new BundleBean();
				bean.setSign("Main");
				Go2Util.startDetailActivity(getApplicationContext(),bean);
				finish();
			}
		}, DELAY_TIME);
	}

}
